Send Bluetooth Message

  • Function:

    magicbox.set_bt_send(to_id, text)
    
  • Description: send bluetooth message

  • Required parameter:

    • to_id: device id, range: 0~255
    • text: message, data type: str
  • Return:

    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_bt_send(to_id=1, text="hello")
    

    Send "hello" to bluetooth group of which the device id is 1.

results matching ""

    No results matching ""